package com.lianzhihui.romeex.mvp.presenter;

import android.content.Context;

import com.lianzhihui.romeex.bean.WalletMainBean;
import com.lianzhihui.romeex.mvp.model.WalletInfoInterface;
import com.lianzhihui.romeex.mvp.model.WalletInfoModelImp;
import com.lianzhihui.romeex.mvp.view.WalletInfoView;

/**
 * Description:
 * Author: RAMON
 * CreateDate: 2020/11/9 2:02 PM
 * UpdateUser:
 * UpdateDate:
 * UpdateRemark:
 * Version:
 */
public class WalletInfoPresenter implements WalletInfoInterface {

    Context context;
    WalletInfoView iView;
    WalletInfoModelImp iModel;

    public WalletInfoPresenter(Context context, WalletInfoView iView) {
        this.context = context;
        this.iView = iView;
        iModel = new WalletInfoModelImp(context, this);
    }

    public void getWalletInfo(){
        iModel.getWalletInfo();
    }

    @Override
    public void onGetWalletInfo(WalletMainBean bean) {
        iView.onGetWalletInfo(bean);
    }

    @Override
    public void onGetWalletInfoFail(Object obj) {
        iView.onGetWalletInfoFail(obj);
    }

    @Override
    public void onFailure() {

    }
}
